-- GENERATED SPELL FOR [Eldreth Spirit] --


function spell0_11472(pUnit, Event) --@Banshee Shriek,Self--
pUnit:FullCastSpellOnTarget(16838,pUnit)
pUnit:RegisterEvent('Sorts_11472', 5000, 1)
end

function spell1_11472(pUnit, Event) --@Ribbon of Souls,n/a--
pUnit:FullCastSpellOnTarget(22743,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11472', 575, 1)
end

function Sorts_11472(pUnit, Event)
local choix_sorts_11472 = math.random(0, 1)
if choix_sorts_11472 == 0 then
pUnit:RegisterEvent('spell0_11472', 1, 1)
end
if choix_sorts_11472 == 1 then
pUnit:RegisterEvent('spell1_11472', 1, 1)
end
end

function mob11472_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11472', math.random(1500, 3000), 1)
end

function mob11472_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11472_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11472_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11472, 1, 'mob11472_Action')
RegisterUnitEvent(11472, 2, 'mob11472_Leave')
RegisterUnitEvent(11472, 3, 'mob11472_Kill')
RegisterUnitEvent(11472, 4, 'mob11472_Die')
